package models;

import java.util.Date;


public class DTO_PhieuGoiMon {

	private int maPGM;
	private int Soban;
	private Date Ngay;
	private Date Thoigian;
	private String tenKH;
	private int[] dsMon;

public void setDSMon(String strDSMon){
	String ds[] = strDSMon.split(",");
	int numofParts = ds.length;
	dsMon = new int[numofParts];
	for(int i=0;i<numofParts;i++){
		String strMaMon = ds[i];
		int MaMon;
		try{
			MaMon = Integer.parseInt(strMaMon);
		}
		catch(Exception ex){
			MaMon = -1;
		}
		dsMon[i] = MaMon;
	}
}


public int[] getDSMon (){
	return dsMon;
	
}


public int getMaPGM() {
	return maPGM;
}

public void setMaPGM(int maPGM) {
	this.maPGM = maPGM;
}

public int getSoban() {
	return Soban;
}

public void setSoban(int soban) {
	Soban = soban;
}

public Date getNgay() {
	return Ngay;
}

public void setNgay(Date ngay) {
	Ngay = ngay;
}

public Date getThoigian() {
	return Thoigian;
}

public void setThoigian(Date thoigian) {
	Thoigian = thoigian;
}

public String getTenKH() {
	return tenKH;
}

public void setTenKH(String tenKH) {
	this.tenKH = tenKH;
}

}



